package cn.mhome.merchant.dao.spring.data.repository;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;


public interface CriteriaRepository<T, ID extends Serializable> extends JpaRepository<T, ID> {
	public List<T> findByCriteria(Criteria criteria, Pageable page);
	public long countByCriteria(Criteria criteria);
	public void saveSelf(List<T> list,int count);
}
